package cn.straosp.workrecord.service

import cn.straosp.workrecord.bean.Account
import cn.straosp.workrecord.bean.LoginAccount
import cn.straosp.workrecord.bean.RegisterAccount
import cn.straosp.workrecord.util.Result
import org.springframework.stereotype.Service

@Service
interface AccountService {

    fun login(loginAccount: LoginAccount): Result<Account>
    fun registerAccount(registerAccount: RegisterAccount): Result<Account>
    fun getAccountById(accountId: Int): Result<Account>
}